import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsString, MaxLength } from 'class-validator';

export class RejectVideoDto {
  @ApiProperty({
    description: '下架理由',
    example: '视频内容违反社区规定',
    required: true,
  })
  @IsNotEmpty({ message: '下架理由不能为空' })
  @IsString({ message: '下架理由必须是字符串' })
  @MaxLength(500, { message: '下架理由最多500个字符' })
  reason: string;
}